package cn.iocoder.yudao.module.product.controller.app.spu.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Description:
 * Author: li
 * Date: 2024/3/14
 */
@Schema(description = "用户 App - 商品 SPU 分页 Request VO")
@Data
public class SearchESimSpuReqVO {
    @Schema(description = "覆盖范围属性Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "Coverage")
    @NotNull(message = "coveragePropertyId不能为空")
    private Long coveragePropertyId;

    @Schema(description = "覆盖范围属性值", requiredMode = Schema.RequiredMode.REQUIRED, example = "China")
    @NotEmpty(message = "coveragePropertyValueList不能为空")
    private List<String> coveragePropertyValueList;

    @Schema(description = "数据流量（MB）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "esDataAllowanceMb不能为空")
    private Integer esDataAllowanceMb;

    @Schema(description = "有效期，最小", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "esValidityPeriodDaysMin不能为空")
    private Integer esValidityPeriodDaysMin;

    @Schema(description = "有效期，最大", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "esValidityPeriodDaysMax不能为空")
    private Integer esValidityPeriodDaysMax;

}
